Beispiel #1
0
        public override void Init(MyObjectBuilder_EntityBase objectBuilder)
        {
            ObjectBuilder = objectBuilder;

            base.Init(objectBuilder);
            ulong currentchannel;

            if (LCDWriterCore.TryRegisterAndGetChannel(this, out currentchannel))
            {
                UpdateChannelInternal(currentchannel);
            }
            else
            {
                m_CurrentBuffer = 1;
            }

            this.NeedsUpdate |= MyEntityUpdateEnum.BEFORE_NEXT_FRAME;
        }
 public LCDWriterCore()
 {
     instance = this;
 }