"景先生毕设|www.jxszl.com

C# API类代码示例

2023-12-29 17:05编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中API类的典型用法代码示例。如果您正苦于以下问题:C#API类的具体用法?C#API怎么用?C#API使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:User publicUser(StateManagerstateMgr,API.Geo.Worldworld) { this.mStateMgr=stateMgr; this.mWorld=world; this.mTimeSinceGUIOpen=newTimer(); this.mCameraMan=null; this.IsAllowedToMoveCam=true; this.IsFreeCamMode=true; Cameracam=this.mStateMgr.Camera; cam.Position=newVector3(-203,633,-183); cam.Orientation=newQuaternion(0.3977548f,-0.1096644f,-0.8781486f,-0.2421133f); this.mCameraMan=newCameraMan(cam); this.mSelectedAllies=newHashSet(); this.mRandom=newRandom(); this.mFigures=newMOIS.KeyCode[10]; for(inti=0;i<9;i++) this.mFigures[i]=(MOIS.KeyCode)System.Enum.Parse(typeof(MOIS.KeyCode),"KC_"+(i+1)); this.mFigures[9]=MOIS.KeyCode.KC_0; this.mWireCube=this.mStateMgr.SceneMgr.RootSceneNode.CreateChildSceneNode(); this.mWireCube.AttachObject(StaticRectangle.CreateRectangle(this.mStateMgr.SceneMgr,Vector3.UNIT_SCALE*Cst.CUBE_SIDE)); this.mWireCube.SetVisible(false); this.Inventory=newInventory(10,4,newint[]{3,0,1,2},true); }
原文链接:http://www.jxszl.com/biancheng/C/556548.html