Exemple #1
0
 public ExternalCaptureActor(Actor self, Target target)
 {
     this.target  = target;
     capturable   = target.Actor.Trait <ExternalCapturable>();
     capturesInfo = self.Info.TraitInfo <ExternalCapturesInfo>();
     mobile       = self.Trait <Mobile>();
 }
 public ExternalCaptureActor(Actor self, Target target)
 {
     this.target      = target;
     capturable       = target.Actor.Trait <ExternalCapturable>();
     capturesInfo     = self.Info.TraitInfo <ExternalCapturesInfo>();
     mobile           = self.Trait <Mobile>();
     conditionManager = self.TraitOrDefault <ConditionManager>();
 }
 public CaptureProperties(ScriptContext context, Actor self)
     : base(context, self)
 {
     normalInfo   = Self.Info.TraitInfoOrDefault <CapturesInfo>();
     externalInfo = Self.Info.TraitInfoOrDefault <ExternalCapturesInfo>();
 }
Exemple #4
0
 public CaptureProperties(ScriptContext context, Actor self)
     : base(context, self)
 {
     captures     = Self.TraitsImplementing <Captures>().ToArray();
     externalInfo = Self.Info.TraitInfoOrDefault <ExternalCapturesInfo>();
 }