Пример #1
0
 protected NonPlayerCharacter(NpcSpriteSheet spriteSheet, Int32 level, Int32 row, Int32 column,
     MovementBehavior movementBehavior, Action<MapCharacter> onInteracting)
     : base(spriteSheet, level, row, column)
 {
     MovementBehavior = movementBehavior;
     _onInteracting = onInteracting;
 }
Пример #2
0
 public static NonPlayerCharacter New(String npcName, Int32 level, Int32 row, Int32 column, MovementBehavior movementBehavior, Action<MapCharacter> onInteracting)
 {
     return new NonPlayerCharacter(NpcSpriteSheet.New(npcName), level, row, column, movementBehavior, onInteracting);
 }