예제 #1
0
        public uint GetSize()
        {
            uint size = 0;

            size += 4;          //	id
            size += 4;
            size += BinaryCodec.Size(name);
            size += BinaryCodec.SizeUnicodeString(displayName);
            size += 4;          //	sizeX
            size += 4;          //	sizeY
            size += 1;          //	isFog
            size += BinaryCodec.Size(groupname);
            size += sizeof(ushort);
            for (int i = 0; i < bgTileSets.Count; ++i)
            {
                string item = bgTileSets[i];
                size += BinaryCodec.Size(item);
            }
            size += sizeof(ushort);
            for (int i = 0; i < objectTileSets.Count; ++i)
            {
                string item = objectTileSets[i];
                size += BinaryCodec.Size(item);
            }
            return(size);
        }
예제 #2
0
        public uint GetSize()
        {
            uint size = 0;

            size += BinaryCodec.Size(id);
            size += BinaryCodec.SizeUnicodeString(text);
            return(size);
        }
예제 #3
0
        public uint GetSize()
        {
            uint size = 0;

            size += 4;          //	id
            size += 4;          //	select
            size += BinaryCodec.SizeUnicodeString(text);
            size += 4;          //	storysceneid
            size += 4;          //	storyindexid
            return(size);
        }
예제 #4
0
        public uint GetSize()
        {
            uint size = 0;

            size += BinaryCodec.Size(itemID);
            size += BinaryCodec.SizeUnicodeString(itemName);
            size += BinaryCodec.SizeUnicodeString(itemDesc);
            size += BinaryCodec.Size(iconName);
            size += 4;          //	price
            size += BinaryCodec.Size(option);
            size += 4;
            size += 4;
            size += 1;          //	isConsume
            size += 4;
            size += 4;
            return(size);
        }
예제 #5
0
        public uint GetSize()
        {
            uint size = 0;

            size += BinaryCodec.Size(itemID);
            size += BinaryCodec.SizeUnicodeString(itemName);
            size += BinaryCodec.SizeUnicodeString(itemDesc);
            size += BinaryCodec.Size(iconName);
            size += 4;          //	price
            size += 4;
            size += 4;          //	physicalDamage
            size += 4;          //	elementalDamage
            size += 4;          //	physicalCritChance
            size += 4;          //	elementalCritChance
            size += 4;          //	physicalRate
            size += 4;          //	elementalRate
            size += BinaryCodec.Size(option);
            return(size);
        }
예제 #6
0
        public uint GetSize()
        {
            uint size = 0;

            size += 4;          //	scene
            size += 4;          //	index
            size += BinaryCodec.SizeUnicodeString(characterName);
            size += BinaryCodec.SizeUnicodeString(text);
            size += 4;          //	eventid
            size += 4;          //	nextsceneid
            size += 1;          //	skip
            size += BinaryCodec.Size(bg);
            size += BinaryCodec.Size(left_character);
            size += BinaryCodec.Size(right_character);
            size += 4;          //	fontsize
            size += 4;          //	fonteffect
            size += BinaryCodec.Size(bgm);
            size += BinaryCodec.Size(sound);
            return(size);
        }
예제 #7
0
        public uint GetSize()
        {
            uint size = 0;

            size += BinaryCodec.Size(statusEffectID);
            size += 4;
            size += BinaryCodec.Size(iconName);
            size += BinaryCodec.SizeUnicodeString(displayName);
            size += BinaryCodec.SizeUnicodeString(description);
            size += 4;          //	percent
            size += 4;          //	fix
            size += 4;
            size += 4;          //	variance
            size += 1;          //	isCritical
            size += 4;          //	criticalProbability
            size += BinaryCodec.Size(vfxEffect);
            size += BinaryCodec.Size(soundEffect);
            size += BinaryCodec.Size(effectColor);
            return(size);
        }
예제 #8
0
        public uint GetSize()
        {
            uint size = 0;

            size += BinaryCodec.Size(itemID);
            size += BinaryCodec.SizeUnicodeString(itemName);
            size += BinaryCodec.SizeUnicodeString(itemDesc);
            size += BinaryCodec.Size(iconName);
            size += 4;          //	price
            size += BinaryCodec.Size(option);
            size += 4;
            size += 4;          //	health
            size += 4;          //	energy
            size += 4;          //	healthRecover
            size += 4;          //	energyRecover
            size += 4;          //	physicalArmor
            size += 4;          //	elementalArmor
            size += 4;          //	physicalAvoid
            size += 4;          //	elementalAvoid
            size += 4;          //	physicalResistance
            size += 4;          //	elementalResistance
            return(size);
        }
예제 #9
0
        public uint GetSize()
        {
            uint size = 0;

            size += 4;          //	ID
            size += BinaryCodec.Size(Name);
            size += 4;
            size += BinaryCodec.SizeUnicodeString(displayName);
            size += BinaryCodec.Size(spriteName);
            size += 4;          //	default_str
            size += 4;          //	default_dex
            size += 4;          //	default_con
            size += 4;          //	default_int
            size += 4;          //	default_spr
            size += 4;          //	default_wis
            size += 4;          //	default_hp
            size += 4;          //	default_mp
            size += 4;          //	rewordXP
            size += 4;          //	rewordGold
            size += 1;          //	isDrop
            size += BinaryCodec.Size(dropList);
            return(size);
        }