コード例 #1
0
 public static void serverCmdUse(GameConnection client, ItemData data)
 {
     if (((Player)client.getControlObject()).isObject())
     {
         ((Player)client.getControlObject()).Use(data);
     }
 }
コード例 #2
0
ファイル: commands.cs プロジェクト: souxiaosou/OmniEngine.Net
        public static void serverCmdToggleCamera(GameConnection client)
        {
            string control;
            if (client.getControlObject() == client["player"])
                {
                ((Extendable.Camera) client["camera"]).setVelocity(new Point3F("0 0 0"));
                control = client["camera"];
                }
            else
                {
                ((Player) client["player"]).setVelocity(new Point3F("0 0 0"));
                control = client["player"];
                }
            client.setControlObject(control);

            syncEditorGui();
        }
コード例 #3
0
 public static void serverCmdUse(GameConnection client, ItemData data)
 {
     if (((Player) client.getControlObject()).isObject())
         ((Player) client.getControlObject()).Use(data);
 }