示例#1
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);
            int index = context.ReadInt32();

            Source = (Node)Root.Instance.Scene.ServerListGet(index);
        }
示例#2
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            ScoreIntervall = (int)context.ReadByte();
            TeamScoreLimit = (int)context.ReadInt16();
        }
示例#3
0
 public Race(DeSerializationContext context)
     : base(context)
 {
     /*IList<CheckPoint> l = Root.Instance.Scene.FindEntitiesByType<CheckPoint>();
      * CheckPoints = new CheckPoint[l.Count];
      * l.CopyTo(CheckPoints, 0);*/
 }
示例#4
0
 public Explosion(DeSerializationContext context)
 {
     NoReplication = true;
     SyncRefs      = false;
     DeSerialize(context);
     Init();
 }
示例#5
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            int target = context.ReadInt32();
            if (!IsLocal)
                Owner = (PlayerEntity)Root.Instance.Scene.ServerListGet(target);
        }
示例#6
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            TimeElapsed = context.ReadSingle();
            TimeLimit   = context.ReadSingle();
            GameOver    = context.ReadBoolean();
        }
示例#7
0
 public Missile(DeSerializationContext context)
     : base(context)
 {
     NoReplication       = false;
     Smoke               = new SmokeTrail();
     Smoke.NoReplication = true;
     Root.Instance.Scene.Spawn(Smoke);
     Smoke.Attach          = this;
     Smoke.Smoke.PointSize = 50;
 }
示例#8
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            int target = context.ReadInt32();

            if (!IsLocal)
            {
                Owner = (PlayerEntity)Root.Instance.Scene.ServerListGet(target);
            }
        }
示例#9
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))
                );
        }
示例#10
0
        public override void DeSerialize(DeSerializationContext context)
        {
            List <EventReplicationInfo> events = new List <EventReplicationInfo>();
            int n = (int)context.ReadByte();

            for (int i = 0; i < n; ++i)
            {
                events.Add(new EventReplicationInfo(context));
            }

            EventList = events;
        }
示例#11
0
        public void DeSerialize(DeSerializationContext context)
        {
            //base.DeSerialize(context);

            CurrentStatus = (Status)context.ReadByte();

            PrimaryObjectives = new Objective[context.ReadByte()];
            for (int i = 0; i < PrimaryObjectives.Length; ++i)
            {
                PrimaryObjectives[i] = (Objective)context.DeSerialize();
            }
        }
示例#12
0
        public override void DeSerialize(DeSerializationContext context)
        {
            if (Physics == null)
            {
                //HACK
                Physics = CreatePhysicsObject(Root.Instance.Scene);
            }

            base.DeSerialize(context);


            Position    = position.Original;
            Orientation = orientation.Original;

            //PhysicsBody.AngularVel = new Ode.dVector3(r.ReadSingle(), r.ReadSingle(), r.ReadSingle());
            //PhysicsBody.AngularVel = new Ode.dVector3((float)r.ReadInt16() / 100.0f, (float)r.ReadInt16() / 100.0f, (float)r.ReadInt16() / 100.0f);
        }
示例#13
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            TeamScoreLimit = context.ReadInt16();

            int l = context.ReadByte();

            Teams = new Team[l];
            for (int i = 0; i < l; ++i)
            {
                Teams[i] = CreateTeam();
                Teams[i].DeSerialize(context);
                Teams[i].Index = i;
                //Teams[i].Score = context.ReadInt16();
            }
        }
示例#14
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();
 }
示例#15
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            Missions = new SingleMission[context.ReadByte()];
            for (int i = 0; i < Missions.Length; ++i)
            {
                Missions[i] = new SingleMission(context);
            }

            int l = context.ReadByte();

            Teams = new Team[l];
            for (int i = 0; i < l; ++i)
            {
                Teams[i] = CreateTeam();
                Teams[i].DeSerialize(context);
                Teams[i].Index = i;
            }
        }
示例#16
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     string hm     = context.ReadString();
     string color  = context.ReadString();
     string detail = context.ReadString();
 }
示例#17
0
        public void DeSerialize(DeSerializationContext context)
        {
            int tmp = context.ReadInt16();
            int c = context.ReadInt16();

            if (!Root.Instance.IsAuthoritive)
            {
                Capacity = tmp;
                Freight.Clear();
                for (int i = 0; i < c; ++i)
                {
                    Type t = Root.Instance.Factory.GetType(context.ReadInt16());
                    Freight[t] = context.ReadInt16();
                }
            }
            else
            {
                for (int i = 0; i < c; ++i)
                {
                    context.ReadInt16();
                    context.ReadInt16();
                }
            }
        }
示例#18
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))
                );
        }
示例#19
0
 public BorgCube(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#20
0
 public Sulaco(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#21
0
 public MK9Hawk(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#22
0
 public override void DeSerialize(DeSerializationContext context)
 {
     base.DeSerialize(context);
 }
示例#23
0
 public SWCTF01(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#24
0
 public Nuke(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#25
0
 public override void DeSerialize(DeSerializationContext context)
 {
     base.DeSerialize(context);
 }
示例#26
0
 public HomingMissile(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#27
0
 public Crap(DeSerializationContext context)
     : this()
 {
     base.DeSerialize(context);
 }
示例#28
0
 public Cube(DeSerializationContext context)
     : base(context)
 {
 }
示例#29
0
 public SmallExplosion(DeSerializationContext context)
     : base(context)
 {
     LifeTime = 2;
     RenderRadius = 0;
 }
示例#30
0
 public Actor(DeSerializationContext context) :
     base(context)
 {
 }
示例#31
0
 public Khitomer(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#32
0
 public Moon(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#33
0
 public Saucer(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#34
0
 public Planet(DeSerializationContext context)
 {
     DeSerialize(context);
 }
示例#35
0
 public TieFighter(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#36
0
 public Saturn(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#37
0
 public Tydirium(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#38
0
 public Asteroid(DeSerializationContext context)
 {
     DeSerialize(context);
 }
示例#39
0
 public virtual void DeSerialize(DeSerializationContext context)
 {
     string hm = context.ReadString();
     string color = context.ReadString();
     string detail = context.ReadString();
 }
示例#40
0
 public SWMISSION02(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#41
0
 public PhobosAsteroid(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#42
0
 public Saturn(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#43
0
 public PornCinema(DeSerializationContext context)
     : base(context)
 {
 }
示例#44
0
 public Asteroid(DeSerializationContext context)
 {
     DeSerialize(context);
 }
示例#45
0
 public SpaceStation(DeSerializationContext context)
     : base(context)
 {
 }
示例#46
0
 public Planet(DeSerializationContext context)
 {
     DeSerialize(context);
 }
示例#47
0
 public override void DeSerialize(DeSerializationContext context)
 {
     base.DeSerialize(context);
     Radius = context.ReadSingle();
 }
示例#48
0
 public override void DeSerialize(DeSerializationContext context)
 {
     base.DeSerialize(context);
     Radius = context.ReadSingle();
 }
示例#49
0
 public GameServerInfo(DeSerializationContext context)
 {
     DeSerialize(context);
 }
示例#50
0
 public SpaceStation(DeSerializationContext context)
     : base(context)
 {
 }
示例#51
0
 public Terrain(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#52
0
 public PornCinema(DeSerializationContext context)
     : base(context)
 {
 }
示例#53
0
 public SmokeTrail(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#54
0
 public PhobosAsteroid(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#55
0
 public Explosion(DeSerializationContext context)
 {
     NoReplication = true;
     SyncRefs = false;
     DeSerialize(context);
     Init();
 }
示例#56
0
 public Moon(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#57
0
 public BigExplosion(DeSerializationContext context)
     : base(context)
 {
     Transparent = 5;
 }
示例#58
0
 public Dreadnaught(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#59
0
 public SWCTF01(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }
示例#60
0
 public GravityForceShip(DeSerializationContext context)
     : this()
 {
     DeSerialize(context);
 }