public static void SetupMobiles() { BaseCreature next = new Gareth(); next.MoveToWorld(new Point3D(2023, 2841, 20), Map.Trammel); next.Home = next.Location; next.RangeHome = 5; next = new Gareth(); next.MoveToWorld(new Point3D(2023, 2841, 20), Map.Felucca); next.Home = next.Location; next.RangeHome = 5; next = new Dierdre(); next.MoveToWorld(new Point3D(1442, 1600, 20), Map.Felucca); next.Home = next.Location; next.RangeHome = 40; next = new Jason(); next.MoveToWorld(new Point3D(610, 2197, 0), Siege.SiegeShard ? Map.Felucca : Map.Trammel); next.Home = next.Location; next.RangeHome = 40; next = new Kevin(); next.MoveToWorld(new Point3D(2464, 439, 15), Siege.SiegeShard ? Map.Felucca : Map.Trammel); next.Home = next.Location; next.RangeHome = 40; next = new Maribel(); next.MoveToWorld(new Point3D(1443, 1701, 0), Siege.SiegeShard ? Map.Felucca : Map.Trammel); next.Home = next.Location; next.RangeHome = 40; next = new Nelson(); next.MoveToWorld(new Point3D(3441, 2623, 36), Siege.SiegeShard ? Map.Felucca : Map.Trammel); next.Home = next.Location; next.RangeHome = 40; next = new Sean(); next.MoveToWorld(new Point3D(2442, 471, 15), Map.Felucca); next.Home = next.Location; next.RangeHome = 40; next = new Walton(); next.MoveToWorld(new Point3D(610, 2197, 0), Map.Felucca); next.Home = next.Location; next.RangeHome = 40; }
public object DispatchJob( HttpRequestMessage request, Jason.ComponentModel.IJob job ) { //var tx = job.ExecutionBehavior == JobExecutionBehavior.InTransaction ? // new TransactionScope( TransactionScopeOption.Required ) // : null; //try //{ // List<Object> responses = new List<object>(); // foreach ( var cmd in job.WorkItems ) // { // var commandResponse = this.commandDispatcher.DispatchCommand( request, cmd ); // if ( !this.IsErrorResponse( commandResponse ) ) // { // responses.Add( commandResponse ); // } // else // { // return commandResponse; // } // } // if ( job.ExecutionBehavior == JobExecutionBehavior.InTransaction ) // { // tx.Complete(); // } //} //finally //{ // if ( job.ExecutionBehavior == JobExecutionBehavior.InTransaction ) // { // tx.Dispose(); // } //} return null; }
public void LoadTest() { Jason jason1 = new Jason(); jason1.Name = "Jason"; jason1.Age = 10; jason1.Birthday = new DateTime(1980,12,02); jason1.Members = "Jason"; //jason1.Girl = new Angela() {Width = 10.25}; FakeJason jason2 = new FakeJason(); jason2.Load(jason1); Assert.Same(jason1.Name, jason2.Name); //Assert.Same(jason1.Birthday, jason2.Birthday); //Assert.Same(jason1.Girl.Width, jason2.Girl.Width); }