Exemple #1
0
 public override Entity Create(Region tregion, byte[] data)
 {
     int col = Utilities.BytesToInt(Utilities.BytesPartial(data, PhysicsEntity.PhysicsNetworkDataLength, 4));
     GlowstickEntity ge = new GlowstickEntity(tregion, col);
     ge.ApplyPhysicsNetworkData(data);
     return ge;
 }
Exemple #2
0
        public override Entity Create(Region tregion, byte[] data)
        {
            int             col = Utilities.BytesToInt(Utilities.BytesPartial(data, PhysicsEntity.PhysicsNetworkDataLength, 4));
            GlowstickEntity ge  = new GlowstickEntity(tregion, col);

            ge.ApplyPhysicsNetworkData(data);
            return(ge);
        }