NScumm.Sword1.Logic.fnInteract C# (CSharp) Method

fnInteract() private method

private fnInteract ( SwordObject cpt, int id, int target, int d, int e, int f, int z, int x ) : int
cpt SwordObject
id int
target int
d int
e int
f int
z int
x int
return int
        private int fnInteract(SwordObject cpt, int id, int target, int d, int e, int f, int z, int x)
        {
            SwordObject tar = _objMan.FetchObject((uint)target);
            cpt.place = tar.place;

            SwordObject floorObject = _objMan.FetchObject((uint)tar.place);
            cpt.scale_a = floorObject.scale_a;
            cpt.scale_b = floorObject.scale_b;

            cpt.tree.script_level++;
            cpt.tree.script_pc[cpt.tree.script_level] = tar.interact;
            cpt.tree.script_id[cpt.tree.script_level] = tar.interact;

            return SCRIPT_STOP;
        }