Пример #1
0
        public MoveableBuilding(InstanceID instanceID, bool sub = false) : base(instanceID)
        {
            isSubInstance = sub;
            isHidden      = (buildingBuffer[id.Building].m_flags & Building.Flags.Hidden) == Building.Flags.Hidden;
            Info          = new Info_Prefab(BuildingManager.instance.m_buildings.m_buffer[instanceID.Building].Info);

            ResetSubInstances();
        }
Пример #2
0
 public MoveableTree(InstanceID instanceID) : base(instanceID)
 {
     //if (((TreeInstance.Flags)TreeManager.instance.m_trees.m_buffer[instanceID.Tree].m_flags & TreeInstance.Flags.Created) == TreeInstance.Flags.None)
     //{
     //    throw new Exception($"Tree #{instanceID.Tree} not found!");
     //}
     Info = new Info_Prefab(TreeManager.instance.m_trees.m_buffer[instanceID.Tree].Info);
 }
Пример #3
0
        public MoveableNode(InstanceID instanceID) : base(instanceID)
        {
            Info = new Info_Prefab(NetManager.instance.m_nodes.m_buffer[instanceID.NetNode].Info);

            subInstances = GetSubInstances();
        }
Пример #4
0
 public MoveableProp(InstanceID instanceID) : base(instanceID)
 {
     Info = new Info_Prefab(PropManager.instance.m_props.m_buffer[instanceID.Prop].Info);
 }