Esempio n. 1
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;
     }
 }
Esempio n. 2
0
 public override void Load(BaseNetworkable.LoadInfo info)
 {
     base.Load(info);
     if (info.msg.ioEntity == null)
     {
         return;
     }
     this.entityRef.uid = (uint)((IOEntity)info.msg.ioEntity).genericEntRef1;
     this.powerAction   = (DoorManipulator.DoorEffect)((IOEntity)info.msg.ioEntity).genericInt1;
 }