using System; using System.Collections.Generic; using System.Linq; using System.Text; using Snowlight.Game.Rooms; using Snowlight.Game.Sessions; using Snowlight.Game.Items; namespace SnowlightV2.Codigos.Game.Items.DefaultBehaviorHandlers { class BattleBallBanzayGates { public static void RegisterBlue() { ItemEventDispatcher.RegisterEventHandler(ItemBehavior.BlueBBGate, new ItemEventHandler(BlueGate)); } public static void RegisterRed() { ItemEventDispatcher.RegisterEventHandler(ItemBehavior.RedBBGate, new ItemEventHandler(RedGate)); } public static void RegisterGreen() { ItemEventDispatcher.RegisterEventHandler(ItemBehavior.GreenBBGate, new ItemEventHandler(GreenGate)); } public static void RegisterYellow() { ItemEventDispatcher.RegisterEventHandler(ItemBehavior.YellowBBGate, new ItemEventHandler(YellowGate)); } private static bool BlueGate(Session Session, Item Item, RoomInstance Instance, ItemEventType Event, int RequestData) { switch (Event) {} foreach (Session ses in SessionManager.Sessions.Values) { RoomInstance inst = RoomManager.GetInstanceByRoomId(ses.CurrentRoomId); RoomActor act = (inst == null ? null : inst.GetActorByReferenceId(ses.CharacterId)); act.ApplyEffect(28); ses.CurrentEffect = 28; } return true; } private static bool RedGate(Session Session, Item Item, RoomInstance Instance, ItemEventType Event, int RequestData) { switch (Event) { } return true; } private static bool GreenGate(Session Session, Item Item, RoomInstance Instance, ItemEventType Event, int RequestData) { switch (Event) { } return true; } private static bool YellowGate(Session Session, Item Item, RoomInstance Instance, ItemEventType Event, int RequestData) { switch (Event) { } return true; } } }