Пример #1
0
 public FallToEarth(Actor self, FallsToEarthInfo info)
 {
     this.info = info;
     aircraft = self.Trait<Aircraft>();
     if (info.Spins)
         acceleration = self.World.SharedRandom.Next(2) * 2 - 1;
 }
Пример #2
0
 public FallsToEarth(ActorInitializer init, FallsToEarthInfo info)
 {
     init.Self.QueueActivity(false, new FallToEarth(init.Self, info));
     effectiveOwner = init.Contains <EffectiveOwnerInit>() ? init.Get <EffectiveOwnerInit, Player>() : init.Self.Owner;
 }
Пример #3
0
		public FallsToEarth(Actor self, FallsToEarthInfo info)
		{
			self.QueueActivity(false, new FallToEarth(self, info));
		}
Пример #4
0
 public FallsToEarth(Actor self, FallsToEarthInfo info)
 {
     self.QueueActivity(false, new FallToEarth(self, info));
 }
Пример #5
0
 public FallsToEarth(ActorInitializer init, FallsToEarthInfo info)
 {
     this.info      = info;
     effectiveOwner = init.Contains <EffectiveOwnerInit>() ? init.Get <EffectiveOwnerInit, Player>() : init.Self.Owner;
 }
Пример #6
0
 public FallsToEarth(ActorInitializer init, FallsToEarthInfo info)
 {
     this.info      = info;
     effectiveOwner = init.GetValue <EffectiveOwnerInit, Player>(info, init.Self.Owner);
 }