NScumm.Sword1.Logic.fnLeaveSection C# (CSharp) Метод

fnLeaveSection() приватный Метод

private fnLeaveSection ( SwordObject cpt, int id, int oldScreen, int d, int e, int f, int z, int x ) : int
cpt SwordObject
id int
oldScreen int
d int
e int
f int
z int
x int
Результат int
        private int fnLeaveSection(SwordObject cpt, int id, int oldScreen, int d, int e, int f, int z, int x)
        {
            if (oldScreen >= ObjectMan.TOTAL_SECTIONS)
                throw new InvalidOperationException($"mega {id} leaving section {oldScreen}");
            _objMan.MegaLeaving((ushort) oldScreen, id);
            return SCRIPT_CONT;
        }