public WorldObject(string id, IEventSwitchPriority eventSwitchPriority) { this.eventSwitchPriority = eventSwitchPriority; componentsByEventSwitchId = new Dictionary <int, IList <IComponent> >() { [EventSwitchHandler.DefaultEventSwitchId] = new List <IComponent>() }; Id = id; }
public EmotionTrainer(IEventSwitchPriority eventSwitchPriority) { worldObject = new WorldObject("emotion", eventSwitchPriority); worldObject.AddComponent(new Sprite(worldObject, new SpriteData { Color = Color.White, Height = 16, Width = 16, TextureName = "Emotions/trainer_b" })); worldObject.AddComponent(new Animation(worldObject)); }