Exemplo n.º 1
0
        private void insertObjectButton_Click(object sender, EventArgs e)
        {
            DeckObjectType objectType = (DeckObjectType)typeComboBox.SelectedItem;

            if (objectType == null)
            {
                return;
            }
            DeckObject avatarObject = DeckProgram.DeckScene.GetObject(DeckProgram.DeckEngine.AvatarId);

            DeckProgram.DeckEngine.RequestObjectInsert(objectType.TypeId, avatarObject.RenderLocation, Quaternion.Identity);
        }
Exemplo n.º 2
0
 public void OnInteractResponse(InteractResponseMessage responseMessage)
 {
     if ("TypeList".Equals(responseMessage.InteractionFragment.InteractionName))
     {
         OmTypeListResponseExt omTypeListResponse = responseMessage.GetExtension <OmTypeListResponseExt>();
         List <DeckObjectType> objectTypes        = new List <DeckObjectType>();
         foreach (OmObjectType omObjectType in omTypeListResponse.ObjectType)
         {
             DeckObjectType deckObjectType = new DeckObjectType
             {
                 TypeId   = new Guid(omObjectType.TypeId),
                 TypeName = omObjectType.TypeName
             };
             objectTypes.Add(deckObjectType);
         }
         DeckProgram.DeckDaemon.SetObjectTypes(objectTypes);
     }
 }