public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); int index = context.ReadInt32(); Source = (Node)Root.Instance.Scene.ServerListGet(index); }
public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); ScoreIntervall = (int)context.ReadByte(); TeamScoreLimit = (int)context.ReadInt16(); }
public Race(DeSerializationContext context) : base(context) { /*IList<CheckPoint> l = Root.Instance.Scene.FindEntitiesByType<CheckPoint>(); * CheckPoints = new CheckPoint[l.Count]; * l.CopyTo(CheckPoints, 0);*/ }
public Explosion(DeSerializationContext context) { NoReplication = true; SyncRefs = false; DeSerialize(context); Init(); }
public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); int target = context.ReadInt32(); if (!IsLocal) Owner = (PlayerEntity)Root.Instance.Scene.ServerListGet(target); }
public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); TimeElapsed = context.ReadSingle(); TimeLimit = context.ReadSingle(); GameOver = context.ReadBoolean(); }
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; }
public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); int target = context.ReadInt32(); if (!IsLocal) { Owner = (PlayerEntity)Root.Instance.Scene.ServerListGet(target); } }
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) { 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; }
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(); } }
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); }
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(); } }
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 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; } }
public virtual void DeSerialize(DeSerializationContext context) { string hm = context.ReadString(); string color = context.ReadString(); string detail = context.ReadString(); }
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(); } } }
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 BorgCube(DeSerializationContext context) : this() { DeSerialize(context); }
public Sulaco(DeSerializationContext context) : this() { DeSerialize(context); }
public MK9Hawk(DeSerializationContext context) : this() { DeSerialize(context); }
public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); }
public SWCTF01(DeSerializationContext context) : this() { DeSerialize(context); }
public Nuke(DeSerializationContext context) : this() { DeSerialize(context); }
public HomingMissile(DeSerializationContext context) : this() { DeSerialize(context); }
public Crap(DeSerializationContext context) : this() { base.DeSerialize(context); }
public Cube(DeSerializationContext context) : base(context) { }
public SmallExplosion(DeSerializationContext context) : base(context) { LifeTime = 2; RenderRadius = 0; }
public Actor(DeSerializationContext context) : base(context) { }
public Khitomer(DeSerializationContext context) : this() { DeSerialize(context); }
public Moon(DeSerializationContext context) : this() { DeSerialize(context); }
public Saucer(DeSerializationContext context) : this() { DeSerialize(context); }
public Planet(DeSerializationContext context) { DeSerialize(context); }
public TieFighter(DeSerializationContext context) : this() { DeSerialize(context); }
public Saturn(DeSerializationContext context) : this() { DeSerialize(context); }
public Tydirium(DeSerializationContext context) : this() { DeSerialize(context); }
public Asteroid(DeSerializationContext context) { DeSerialize(context); }
public SWMISSION02(DeSerializationContext context) : this() { DeSerialize(context); }
public PhobosAsteroid(DeSerializationContext context) : this() { DeSerialize(context); }
public PornCinema(DeSerializationContext context) : base(context) { }
public SpaceStation(DeSerializationContext context) : base(context) { }
public override void DeSerialize(DeSerializationContext context) { base.DeSerialize(context); Radius = context.ReadSingle(); }
public GameServerInfo(DeSerializationContext context) { DeSerialize(context); }
public Terrain(DeSerializationContext context) : this() { DeSerialize(context); }
public SmokeTrail(DeSerializationContext context) : this() { DeSerialize(context); }
public BigExplosion(DeSerializationContext context) : base(context) { Transparent = 5; }
public Dreadnaught(DeSerializationContext context) : this() { DeSerialize(context); }
public GravityForceShip(DeSerializationContext context) : this() { DeSerialize(context); }