public void Serialize(IDataWriter writer) { MainCreatureLightInfos.Serialize(writer); for (var i = 0; i < Underlings.Length; i++) { Underlings[i].Serialize(writer); } }
public override void Serialize(IDataWriter writer) { MainCreatureLightInfos.Serialize(writer); writer.WriteShort((short)Underlings.Count); foreach (var x in Underlings) { x.Serialize(writer); } }
public override void Serialize(IDataWriter writer) { MainCreatureLightInfos.Serialize(writer); writer.WriteShort((short)Underlings.Count); for (var underlingsIndex = 0; underlingsIndex < Underlings.Count; underlingsIndex++) { var objectToSend = Underlings[underlingsIndex]; objectToSend.Serialize(writer); } }