예제 #1
0
 public void Destroy(ref BobEffect.Data data)
 {
     if (this.loaded && data != null)
     {
         this.CloseData(data);
         data = null;
     }
 }
예제 #2
0
 public BOBRES Simulate(ref BobEffect.Context ctx)
 {
     if (!this.loaded)
     {
         return BOBRES.ERROR;
     }
     return this.SimulateData(ref ctx);
 }
예제 #3
0
    protected override void OnAddonAwake()
    {
        CharacterOverlayTrait trait = base.GetTrait <CharacterOverlayTrait>();

        this.damageOverlay  = trait.damageOverlay;
        this.damageOverlay2 = trait.damageOverlay2;
        this.takeDamageBob  = trait.takeDamageBob as BobEffect;
        this.meleeBob       = trait.meleeBob as BobEffect;
    }
예제 #4
0
 public bool Create(out BobEffect.Data data)
 {
     if (!this.loaded)
     {
         this.InitializeNonSerializedData();
         this.loaded = true;
     }
     return this.OpenData(out data);
 }
예제 #5
0
 public bool CreateInstance(BobEffect effect)
 {
     BobEffect.Data data;
     if ((effect == null) || !effect.Create(out data))
     {
         return(false);
     }
     this.data.Add(data);
     foreach (BobEffectStack stack in this.forks)
     {
         stack.data.Add(data.Clone());
     }
     return(true);
 }
예제 #6
0
 public bool CreateInstance(BobEffect effect)
 {
     BobEffect.Data datum;
     if (!effect || !effect.Create(out datum))
     {
         return(false);
     }
     this.data.Add(datum);
     foreach (BobEffectStack fork in this.forks)
     {
         fork.data.Add(datum.Clone());
     }
     return(true);
 }
예제 #7
0
 public bool CreateInstance(BobEffect effect)
 {
     BobEffect.Data datum;
     if (!effect || !effect.Create(out datum))
     {
         return false;
     }
     this.data.Add(datum);
     foreach (BobEffectStack fork in this.forks)
     {
         fork.data.Add(datum.Clone());
     }
     return true;
 }
예제 #8
0
 protected abstract BOBRES SimulateData(ref BobEffect.Context ctx);
예제 #9
0
 protected abstract bool OpenData(out BobEffect.Data data);
예제 #10
0
 protected abstract void CloseData(BobEffect.Data data);
예제 #11
0
 public virtual void CopyDataTo(BobEffect.Data target)
 {
     target.force = this.force;
     target.torque = this.torque;
 }
예제 #12
0
 public bool AddEffect(BobEffect effect)
 {
     return(this.working.stack.CreateInstance(effect));
 }
예제 #13
0
 protected override void OnAddonAwake()
 {
     CharacterOverlayTrait trait = base.GetTrait<CharacterOverlayTrait>();
     this.damageOverlay = trait.damageOverlay;
     this.damageOverlay2 = trait.damageOverlay2;
     this.takeDamageBob = trait.takeDamageBob as BobEffect;
     this.meleeBob = trait.meleeBob as BobEffect;
 }
예제 #14
0
 public bool AddEffect(BobEffect effect)
 {
     return this.working.stack.CreateInstance(effect);
 }