blob: a20f3a02ae7ef1df00dbb5362d002994b2adfd2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# -*- coding: utf8 -*-
#
# Copyright (C) 2014 Evol Online
# Author: Andrei Karas (4144)
def writeIntField(w, name, value):
if value == "":
value = "0"
w.write(" {0}: {1}\n".format(name, value))
def writeStrField(w, name, value):
w.write(" {0}: \"{1}\"\n".format(name, value))
def writeSubField(w, name, value):
w.write(" {0}: {1}\n".format(name, value));
def writeStartBlock(w, text):
w.write(" {0}: {{\n".format(text));
def writeEndBlock(w):
w.write(" }\n");
def writeStartScript(w, name):
w.write(" {0}: <\"\n".format(name))
def writeEndScript(w):
w.write(" \">\n")
|