Ejemplo n.º 1
0
            static bool Prefix(ref ModuleHover __instance)
            {
                BuffController buff = BuffController.MakeNewIfNone(__instance.block.tank);

                buff.RemoveHover(__instance);
                return(true);
            }
Ejemplo n.º 2
0
        public void RemoveHover(ModuleHover hover)
        {
            this.allSegments["HoverForce"].ManipulateObj(new List <object> {
                hover
            }, "CLEAN");
            this.allSegments["HoverRange"].ManipulateObj(new List <object> {
                hover
            }, "CLEAN");
            this.allSegments["HoverDamping"].ManipulateObj(new List <object> {
                hover
            }, "CLEAN");

            this.hoverListGeneric.Remove(hover);
        }
Ejemplo n.º 3
0
        public void AddHover(ModuleHover hover)
        {
            this.hoverListGeneric.Add(hover);

            this.allSegments["HoverForce"].ManipulateObj(new List <object> {
                hover
            }, "SAVE");
            this.allSegments["HoverRange"].ManipulateObj(new List <object> {
                hover
            }, "SAVE");
            this.allSegments["HoverDamping"].ManipulateObj(new List <object> {
                hover
            }, "SAVE");
        }