public static DetourEvent ShouldCollideWithBuildingLayerCallback(CharacterAccessor accessor, GameLocationAccessor gameLocationAccessor) { var @event = new ShouldCollideWithBuildingLayerEvent(new Character(WrappedGame, accessor), gameLocationAccessor == null ? null : new GameLocation(WrappedGame, gameLocationAccessor)); FireEvent(@event); return(@event); }
public FarmAnimal(StaticContext parent, CharacterAccessor accessor) : base(parent, accessor) { }
public Character(StaticContext parent, CharacterAccessor accessor) : base(parent) { Underlying = accessor; }