コード例 #1
0
 public VoxelHarvesterDockSequence(Actor self, Actor proc)
 {
     this.proc = proc;
     state     = State.Turn;
     harv      = self.Trait <Harvester>();
     body      = self.Trait <WithVoxelUnloadBody>();
 }
コード例 #2
0
 public VoxelHarvesterDockSequence(Actor self, Actor proc)
 {
     this.proc = proc;
     state = State.Turn;
     harv = self.Trait<Harvester>();
     body = self.Trait<WithVoxelUnloadBody>();
 }
コード例 #3
0
 public VoxelHarvesterDockSequence(Actor self, Actor refinery, int dockAngle, bool isDragRequired, WVec dragOffset, int dragLength)
     : base(self, refinery, dockAngle, isDragRequired, dragOffset, dragLength)
 {
     body          = self.Trait <WithVoxelUnloadBody>();
     spriteOverlay = refinery.TraitOrDefault <WithDockingOverlay>();
 }
コード例 #4
0
 public VoxelHarvesterDockSequence(Actor self, Actor refinery, int dockAngle, bool isDragRequired, WVec dragOffset, int dragLength)
     : base(self, refinery, dockAngle, isDragRequired, dragOffset, dragLength)
 {
     body = self.Trait<WithVoxelUnloadBody>();
     spriteOverlay = refinery.TraitOrDefault<WithDockingOverlay>();
 }