void OnSpriteEnter(NetState netstate, PacketReader reader) { var len1 = reader.ReadInt32(); var p1 = new TradeAge.Client.Entity.Character.SceneSprite[len1]; for (int i = 0; i < len1; i++) { p1[i] = SceneSpriteReadProxy.Read(reader); } module.OnSpriteEnter(p1); }
public static TradeAge.Client.Entity.Character.SceneSprite Read(PacketReader reader) { TradeAge.Client.Entity.Character.SceneSprite ret = new TradeAge.Client.Entity.Character.SceneSprite(); ret.Id = reader.ReadInt32(); ret.SpriteType = (TradeAge.Client.Entity.Character.SpriteType)reader.ReadByte(); ret.Name = reader.ReadUTF8String(); ret.Postion = Vector3ReadProxy.Read(reader); ret.Rotation = QuaternionReadProxy.Read(reader); ret.Speed = reader.ReadFloat(); return(ret); }
void OnSpriteEnter(NetState netstate, PacketReader reader) { var len1 = reader.ReadInt32(); var p1 = new TradeAge.Client.Entity.Character.SceneSprite[len1];for(int i =0;i< len1;i++){ p1[i] = SceneSpriteReadProxy.Read(reader); } module.OnSpriteEnter(p1); }
public static TradeAge.Client.Entity.Character.SceneSprite Read(PacketReader reader) { TradeAge.Client.Entity.Character.SceneSprite ret = new TradeAge.Client.Entity.Character.SceneSprite(); ret.Id = reader.ReadInt32(); ret.SpriteType = (TradeAge.Client.Entity.Character.SpriteType)reader.ReadByte(); ret.Name = reader.ReadUTF8String(); ret.Postion = Vector3ReadProxy.Read(reader); ret.Rotation = QuaternionReadProxy.Read(reader); ret.Speed = reader.ReadFloat(); return ret; }