コード例 #1
0
ファイル: ServerConnection.cs プロジェクト: 628426/Strive.NET
 void Process(AddMobile m)
 {
     WorldModel.Set(new EntityModel(m.Mobile.ObjectInstanceId,
                                    m.Mobile.TemplateObjectName,
                                    "RTSRobot",
                                    m.Mobile.Position,
                                    m.Mobile.Rotation));
 }
コード例 #2
0
        private void addAMobileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddMobile addMobile = new AddMobile();

            //make the current form the parent of AddMobile
            addMobile.MdiParent = this;
            //bring up the form
            addMobile.Show();
        }