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); } }
public CField GetCharField() => ParentServer.GetField(Character.Stats.dwPosMap);