public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.autoturret       = Facepunch.Pool.Get <ProtoBuf.AutoTurret>();
     info.msg.autoturret.users = this.authorizedPlayers;
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.spinnerWheel      = Facepunch.Pool.Get <ProtoBuf.SpinnerWheel>();
     info.msg.spinnerWheel.spin = this.wheel.rotation.eulerAngles;
 }
 public override void PostSave(BaseNetworkable.SaveInfo info)
 {
     base.PostSave(info);
     info.msg.autoturret.users = null;
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.researchTable = (__Null)Pool.Get <ResearchTable>();
     ((ResearchTable)info.msg.researchTable).researchTimeLeft = (__Null)((double)this.researchFinishedTime - (double)Time.get_realtimeSinceStartup());
 }
Exemple #5
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.samSite = (__Null)Pool.Get <SAMSite>();
     ((SAMSite)info.msg.samSite).aimDir = (__Null)this.GetAimDir();
 }
Exemple #6
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.lift       = Facepunch.Pool.Get <ProtoBuf.Lift>();
     info.msg.lift.floor = this.floorIndex;
 }
Exemple #7
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.dudExplosive = (__Null)Pool.Get <DudExplosive>();
     ((DudExplosive)info.msg.dudExplosive).fuseTimeLeft = (__Null)((double)this.explodeTime - (double)Time.get_realtimeSinceStartup());
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.ioEntity             = Facepunch.Pool.Get <ProtoBuf.IOEntity>();
     info.msg.ioEntity.genericInt1 = this.frequency;
 }
Exemple #9
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.sphereEntity        = Pool.Get <ProtoBuf.SphereEntity>();
     info.msg.sphereEntity.radius = this.storedEnergy;
 }
Exemple #10
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.autoturret = (__Null) new AutoTurret();
     ((AutoTurret)info.msg.autoturret).aimDir = (__Null)this.aimDir;
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
 }
Exemple #12
0
 public void Save(BaseNetworkable.SaveInfo info)
 {
     info.msg.growableEntity.genes         = GrowableGeneEncoding.EncodeGenesToInt(this);
     info.msg.growableEntity.previousGenes = GrowableGeneEncoding.EncodePreviousGenesToInt(this);
 }
Exemple #13
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.sign = (__Null)Pool.Get <Sign>();
     ((Sign)info.msg.sign).imageid = (__Null)(int)this.textureID;
 }
 public virtual void PostSave(BaseNetworkable.SaveInfo info)
 {
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.ioEntity.genericFloat1 = this.GetPassedTime();
     info.msg.ioEntity.genericFloat2 = this.timerLength;
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.ioEntity.genericInt1 = this.frequency;
 }
Exemple #17
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.sphereEntity        = Facepunch.Pool.Get <ProtoBuf.SphereEntity>();
     info.msg.sphereEntity.radius = this.rotateProgress;
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     ((IOEntity)info.msg.ioEntity).genericFloat1 = (__Null)(double)this.GetPassedTime();
     ((IOEntity)info.msg.ioEntity).genericFloat2 = (__Null)(double)this.timerLength;
 }
 public override void PostSave(BaseNetworkable.SaveInfo info)
 {
     ((BuildingPrivilege)info.msg.buildingPrivilege).users = null;
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.samSite        = Pool.Get <SAMSite>();
     info.msg.samSite.aimDir = this.GetAimDir();
 }
Exemple #21
0
 private void OnEntitySaved(Elevator elevator, BaseNetworkable.SaveInfo saveInfo)
 {
     Interface.Oxide.CallDeprecatedHook("OnElevatorSaved", "OnEntitySaved(Elevator elevator, BaseNetworkable.SaveInfo saveInfo)",
                                        new System.DateTime(2021, 3, 1), elevator, saveInfo);
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.autoturret = (__Null)Pool.Get <AutoTurret>();
     ((AutoTurret)info.msg.autoturret).users = (__Null)this.authorizedPlayers;
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.lift = (__Null)Pool.Get <Lift>();
     ((Lift)info.msg.lift).floor = (__Null)this.floorIndex;
 }
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.heldEntity         = Facepunch.Pool.Get <ProtoBuf.HeldEntity>();
     info.msg.heldEntity.itemUID = this.ownerItemUID;
 }
Exemple #25
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     ((IOEntity)info.msg.ioEntity).genericFloat1 = (__Null)(double)this.pressDuration;
 }
Exemple #26
0
 public override void Save(BaseNetworkable.SaveInfo info)
 {
     base.Save(info);
     info.msg.ioEntity.genericFloat1 = this.pressDuration;
 }