示例#1
0
 public static void OnPositionChanged(PositionChangedCommand positionChangedCommand, ILocationControl locationControl, IClientContext clientContext)
 {
     var character = clientContext.Characters.Get(positionChangedCommand.CharacterId);
     if (character == null)
         return;
     character.Data.Position = positionChangedCommand.Position;
     locationControl.Update(character);
 }
示例#2
0
 public static void OnCharacterDetected(CharacterDetectedCommand characterDetectedCommand, ILocationControl locationControl, IClientContext clientContext)
 {
     clientContext.Characters.Add(characterDetectedCommand.Character);
     locationControl.Add(characterDetectedCommand.Character);
 }