示例#1
0
        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))
                );
        }
示例#2
0
 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();
 }
示例#3
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     string hm = context.ReadString();
     string color = context.ReadString();
     string detail = context.ReadString();
 }
示例#4
0
        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))
                );
        }
示例#5
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     string hm     = context.ReadString();
     string color  = context.ReadString();
     string detail = context.ReadString();
 }
示例#6
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            Team = ((int)context.ReadByte()) - 1;
            Name = context.ReadString();
        }
示例#7
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     Name = context.ReadString();
     Score = (int)context.ReadInt16();
 }
示例#8
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            Path = context.ReadString();
        }
示例#9
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     Cmd = context.ReadString();
 }
示例#10
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     Text = context.ReadString();
     CurrentStatus = (Status)context.ReadByte();
 }
示例#11
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     Cmd = context.ReadString();
 }
示例#12
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     Text          = context.ReadString();
     CurrentStatus = (Status)context.ReadByte();
 }
示例#13
0
 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();
 }