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

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

            ScoreIntervall = (int)context.ReadByte();
            TeamScoreLimit = (int)context.ReadInt16();
        }
Example #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);*/
 }
Example #4
0
 public Explosion(DeSerializationContext context)
 {
     NoReplication = true;
     SyncRefs      = false;
     DeSerialize(context);
     Init();
 }
Example #5
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

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

            TimeElapsed = context.ReadSingle();
            TimeLimit   = context.ReadSingle();
            GameOver    = context.ReadBoolean();
        }
Example #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;
 }
Example #8
0
        public override void DeSerialize(DeSerializationContext context)
        {
            base.DeSerialize(context);

            int target = context.ReadInt32();

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