public Action <IRoom> this[RoomEventType eventType] { get { return(_actions[eventType]); } }
private void FillDictionary(RoomEventType eventType, Command[] array) { foreach (var command in array) { _dictionary[eventType] += (room) => command.Execute(gameObject); } }
public Action <IRoom> this[RoomEventType eventType] { get { if (isActiveAndEnabled) { if (_actions == null) { _actions = new EnumActionDictionary <RoomEventType, IRoom>(); foreach (var listener in _roomEventsListeners.GetCachedComponets <IRoomEventListener>()) { foreach (var roomEvent in StructsExtentions.GetEnumValues <RoomEventType>()) { if (listener[roomEvent] != null) { _actions[roomEvent] += listener[roomEvent]; } } } } return(_actions[eventType]); } return(null); } }
public Action <IRoom> this[RoomEventType eventType] { get { CreateDictionary(); return(_dictionary[eventType]); } }
public static void RoomAction(string roomName, RoomEventType type, int itemCount, int totalItemCount) { if (OnRoomAction != null) { OnRoomAction (roomName, type, itemCount, totalItemCount); } }
public RoomEvent(DateTime date, RoomEventType type, string description) { Date = date; Type = type; Description = description; }