public override void ReadByte(ByteBuffer byteBuf) { Id = byteBuf.ReadInt(); IsLeader = byteBuf.ReadBool(); Race = StringConvert.IndexToEnum <ERaceType>(byteBuf.ReadInt()); Name = LANG.Convert(byteBuf.ReadInt()); Model = byteBuf.ReadUTF(); Age = byteBuf.ReadInt(); Power = byteBuf.ReadLong(); Speed = byteBuf.ReadFloat(); Hp = byteBuf.ReadDouble(); SomeIntParams = byteBuf.ReadListInt(); SomeLongParams = byteBuf.ReadListLong(); SomeFloatParams = byteBuf.ReadListFloat(); SomeDoubleParams = byteBuf.ReadListDouble(); SomeStringParams = byteBuf.ReadListUTF(); SomeLanguageParams = LANG.Convert(byteBuf.ReadListInt()); SkillWrapper = SkillWrapper.Parse(byteBuf); }
public void Create() { AddElement(1, new CfgPlayerTable(1, LANG.Convert(91216312), 1001, 1.2f, 4f, "10001", 100, 100, 20, 10)); }
public void Create() { AddElement(1, new CfgMonsterTable(1, LANG.Convert(178940420), 1002, 10f, 1.2f, 4f, "10001", 8f, 20f, 100, 0, 20, 0)); AddElement(2, new CfgMonsterTable(2, LANG.Convert(178979727), 1003, 10f, 1.2f, 4f, "10001", 8f, 20f, 200, 0, 10, 10)); AddElement(3, new CfgMonsterTable(3, LANG.Convert(1421729370), 1004, 30f, 2.4f, 4f, "10001", 8f, 20f, 1000, 0, 10, 10)); }
public void Create() { AddElement("UILogin1".GetHashCode(), new CfgUILanguageTable("UILogin1".GetHashCode(), LANG.Convert(-347589321))); AddElement("UISetting1".GetHashCode(), new CfgUILanguageTable("UISetting1".GetHashCode(), LANG.Convert(-487833582))); AddElement("UISetting2".GetHashCode(), new CfgUILanguageTable("UISetting2".GetHashCode(), LANG.Convert(1015751757))); AddElement("UISetting3".GetHashCode(), new CfgUILanguageTable("UISetting3".GetHashCode(), LANG.Convert(-50860896))); AddElement("UISetting4".GetHashCode(), new CfgUILanguageTable("UISetting4".GetHashCode(), LANG.Convert(337257549))); AddElement("UISetting5".GetHashCode(), new CfgUILanguageTable("UISetting5".GetHashCode(), LANG.Convert(-384687027))); AddElement("UICommon1".GetHashCode(), new CfgUILanguageTable("UICommon1".GetHashCode(), LANG.Convert(107007938))); }
public void Create() { AddElement(1001, new CfgSkillTable(1001, LANG.Convert(88134997), 1002, "", 0.9f, 1f, 0, 0.2f, 100f, 1.5f)); AddElement(1002, new CfgSkillTable(1002, LANG.Convert(1351039565), 1005, "", 1.2f, 1f, 0, 0.8f, 50f, 3f)); AddElement(1003, new CfgSkillTable(1003, LANG.Convert(-1257327582), 1004, "", 1f, 5f, 0, 0f, 0f, 0f)); }