예제 #1
0
파일: Salis.cs 프로젝트: tflynt91/TrueUO
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            reader.ReadInt();

            if (Map == Map.Trammel)
            {
                InstanceTram = this;
            }
            else if (Map == Map.Felucca)
            {
                InstanceFel = this;
            }
        }
예제 #2
0
파일: Salis.cs 프로젝트: tflynt91/TrueUO
        public static void Initialize()
        {
            if (InstanceTram == null)
            {
                InstanceTram = new Salis();
                InstanceTram.MoveToWorld(new Point3D(5768, 2610, 46), Map.Trammel);
                InstanceTram.Home      = InstanceTram.Location;
                InstanceTram.RangeHome = 5;
            }

            if (InstanceFel == null)
            {
                InstanceFel = new Salis();
                InstanceFel.MoveToWorld(new Point3D(5768, 2610, 46), Map.Felucca);
                InstanceFel.Home      = InstanceFel.Location;
                InstanceFel.RangeHome = 5;
            }
        }