示例#1
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.helicopter != null)
     {
         this.spotlightTarget = info.msg.helicopter.spotlightVec;
     }
 }
示例#2
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.ioEntity != null)
     {
         this.capacitySeconds = info.msg.ioEntity.genericFloat1;
     }
 }
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.corpse != null)
     {
         this.Load(info.msg.corpse);
     }
 }
示例#4
0
 public void Load(BaseNetworkable.LoadInfo info)
 {
     if (info.msg.growableEntity != null)
     {
         GrowableGeneEncoding.DecodeIntToGenes(info.msg.growableEntity.genes, this);
         GrowableGeneEncoding.DecodeIntToPreviousGenes(info.msg.growableEntity.previousGenes, this);
     }
 }
 internal void Load(BaseNetworkable.LoadInfo info)
 {
     if (info.msg.spawnable != null)
     {
         this.Population = FileSystem.Load <SpawnPopulation>(StringPool.Get(info.msg.spawnable.population), true);
     }
     this.Add();
 }
示例#6
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.ioEntity != null)
     {
         this.pressDuration = info.msg.ioEntity.genericFloat1;
     }
 }
示例#7
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.keyLock == null)
     {
         return;
     }
     this.keyCode = (int)((KeyLock)info.msg.keyLock).code;
 }
示例#8
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.sphereEntity == null)
     {
         return;
     }
     this.rotateProgress = (float)((SphereEntity)info.msg.sphereEntity).radius;
 }
示例#9
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.ioEntity == null)
     {
         return;
     }
     this.frequency = (int)((IOEntity)info.msg.ioEntity).genericInt1;
 }
示例#10
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.resource == null)
     {
         return;
     }
     this.health = info.msg.resource.health;
 }
示例#11
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.motorBoat != null)
     {
         this.fuelStorageInstance.uid = info.msg.motorBoat.fuelStorageID;
         this.storageUnitInstance.uid = info.msg.motorBoat.storageid;
     }
 }
示例#12
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.ioEntity == null)
     {
         return;
     }
     this.capacitySeconds = (float)((IOEntity)info.msg.ioEntity).genericFloat1;
 }
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.autoturret != null)
     {
         this.authorizedPlayers    = info.msg.autoturret.users;
         info.msg.autoturret.users = null;
     }
 }
示例#14
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.waterwell == null)
     {
         return;
     }
     this.currentPressure = (float)((WaterWell)info.msg.waterwell).pressure;
 }
示例#15
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.baseProjectile == null || ((BaseProjectile)info.msg.baseProjectile).primaryMagazine == null)
     {
         return;
     }
     this.ammo = (int)((Magazine)((BaseProjectile)info.msg.baseProjectile).primaryMagazine).contents;
 }
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (!info.fromDisk || !Object.op_Inequality((Object)this.vmoManifest, (Object)null) || info.msg.vendingMachine == null)
     {
         return;
     }
     this.vendingOrders = this.vmoManifest.GetFromIndex((int)((VendingMachine)info.msg.vendingMachine).vmoIndex);
 }
示例#17
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.resource == null)
     {
         return;
     }
     this.soilSaturation = (int)((BaseResource)info.msg.resource).stage;
 }
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.ioEntity != null)
     {
         this.timerLength = info.msg.ioEntity.genericFloat2;
         this.timePassed  = info.msg.ioEntity.genericFloat1;
     }
 }
示例#19
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.helicopter == null)
     {
         return;
     }
     this.spotlightTarget = (Vector3)((Helicopter)info.msg.helicopter).spotlightVec;
 }
示例#20
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (this.isServer || !this.animator.get_isInitialized())
     {
         return;
     }
     this.animator.SetBool("armed", this.Armed());
 }
示例#21
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.heldEntity == null)
     {
         return;
     }
     this.ownerItemUID = (uint)((HeldEntity)info.msg.heldEntity).itemUID;
 }
示例#22
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.dudExplosive == null)
     {
         return;
     }
     this.explodeTime = Time.get_realtimeSinceStartup() + (float)((DudExplosive)info.msg.dudExplosive).fuseTimeLeft;
 }
示例#23
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.fromDisk || info.msg.landmine == null)
     {
         return;
     }
     this.triggerPlayerID = (ulong)((Landmine)info.msg.landmine).triggeredID;
 }
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.fromDisk)
     {
         Debug.LogWarning("Loaded explosion marker from disk, cleaning up");
         base.Invoke(new Action(this.DelayedDestroy), 3f);
     }
 }
示例#25
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.motorBoat == null)
     {
         return;
     }
     this.fuelStorageInstance.uid = (uint)((Motorboat)info.msg.motorBoat).fuelStorageID;
 }
示例#26
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.researchTable == null)
     {
         return;
     }
     this.researchFinishedTime = Time.get_realtimeSinceStartup() + (float)((ResearchTable)info.msg.researchTable).researchTimeLeft;
 }
示例#27
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.ioEntity != null)
     {
         this.entityRef.uid = info.msg.ioEntity.genericEntRef1;
         this.powerAction   = (DoorManipulator.DoorEffect)info.msg.ioEntity.genericInt1;
     }
 }
示例#28
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.environment == null || !Object.op_Implicit((Object)TOD_Sky.get_Instance()))
     {
         return;
     }
     ((TOD_CycleParameters)TOD_Sky.get_Instance().Cycle).set_DateTime(DateTime.FromBinary((long)((Environment)info.msg.environment).dateTime));
 }
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.lootableCorpse != null)
     {
         this.playerName    = info.msg.lootableCorpse.playerName;
         this.playerSteamID = info.msg.lootableCorpse.playerID;
     }
 }
示例#30
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.ioEntity == null)
     {
         return;
     }
     this.pressDuration = (float)((IOEntity)info.msg.ioEntity).genericFloat1;
 }