Пример #1
0
        public void SetField(int nMapId, byte nPortal, short nFh)
        {
            var newField = ParentServer.GetField(nMapId);

            if (newField != null)
            {
                var oldField = GetCharField();
                oldField.Remove(this);

                Character.Stats.dwPosMap    = nMapId;
                Character.Stats.nPortal     = nPortal;
                Character.Position.Foothold = nFh;

                newField.Add(this);
            }
        }
Пример #2
0
 public CField GetCharField() => ParentServer.GetField(Character.Stats.dwPosMap);