예제 #1
0
        protected LaserLogicBase(eSegmentEntity segmentEntity, SpawnableObjectEnum spawnableObject, Int64 x, Int64 y,
                                 Int64 z, UInt16 cube, Byte flags, UInt16 value, Segment segment, LogicNode <Byte> node)
            : base(segmentEntity, spawnableObject, x, y, z, cube, flags, value, Vector3.zero, segment)
        {
            _node = node;

            mbNeedsLowFrequencyUpdate = true;
            mbNeedsUnityUpdate        = true;

            UpdateRotation(flags);
        }
예제 #2
0
        protected void Dump(SpawnableObjectEnum spawnable)
        {
            if ((int)spawnable >= SpawnableObjectManagerScript.instance.maSpawnableObjects.Length)
            {
                return;
            }
            GameObject go = SpawnableObjectManagerScript.instance.maSpawnableObjects[(int)spawnable];

            if (go != null)
            {
                file.WriteLine($"== {spawnable} ==");
                DumpGameObject(go, "    ");
                file.WriteLine("\n");
            }
        }
예제 #3
0
 protected LogicLaserOneInput(eSegmentEntity segmentEntity, SpawnableObjectEnum spawnableObject, Int64 x, Int64 y,
                              Int64 z, UInt16 cube, Byte flags, UInt16 value, Segment segment, LogicNode <Byte> node)
     : base(segmentEntity, spawnableObject, x, y, z, cube, flags, value, segment, node)
 {
     UpdateFaces(flags);
 }
예제 #4
0
 public MachineRegistration(Type type, SpawnableObjectEnum objectType)
 {
     this.type       = type;
     this.objectType = objectType;
 }
 public FCESegmentEntityAttribute(string key, SpawnableObjectEnum objectType)
 {
     this.key        = key;
     this.objectType = objectType;
 }