public Terrain(DeSerializationContext context) { string hm = context.ReadString(); string color = context.ReadString(); string detail = context.ReadString(); Init( Root.Instance.ResourceManager.LoadHeightMap(Root.Instance.FileSystem.Get(hm)), Root.Instance.ResourceManager.LoadTexture(Root.Instance.FileSystem.Get(color)), Root.Instance.ResourceManager.LoadTexture(Root.Instance.FileSystem.Get(detail)) ); }
public void DeSerialize(DeSerializationContext context) { ServerName = context.ReadString(); GamePort = context.ReadInt32(); QueryPort = context.ReadInt32(); WebPort = context.ReadInt32(); Password = context.ReadBoolean(); MaxPlayers = context.ReadInt32(); NumPlayers = context.ReadInt32(); AdminName = context.ReadString(); AdminMail = context.ReadString(); Map = context.ReadString(); Game = context.ReadString(); GameType = context.ReadString(); Version = context.ReadInt32(); TickRate = context.ReadInt32(); UpdateRate = context.ReadInt32(); }
public virtual void DeSerialize(DeSerializationContext context) { string hm = context.ReadString(); string color = context.ReadString(); string detail = context.ReadString(); }
public Terrain(DeSerializationContext context) { string hm=context.ReadString(); string color = context.ReadString(); string detail = context.ReadString(); Init( Root.Instance.ResourceManager.LoadHeightMap(Root.Instance.FileSystem.Get(hm)), Root.Instance.ResourceManager.LoadTexture(Root.Instance.FileSystem.Get(color)), Root.Instance.ResourceManager.LoadTexture(Root.Instance.FileSystem.Get(detail)) ); }
public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); Team = ((int)context.ReadByte()) - 1; Name = context.ReadString(); }
public virtual void DeSerialize(DeSerializationContext context) { Name = context.ReadString(); Score = (int)context.ReadInt16(); }
public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); Path = context.ReadString(); }
public virtual void DeSerialize(DeSerializationContext context) { Cmd = context.ReadString(); }
public virtual void DeSerialize(DeSerializationContext context) { Text = context.ReadString(); CurrentStatus = (Status)context.ReadByte(); }