Example #1
0
        public override Entity Create(Region tregion, BsonDocument doc)
        {
            GlowstickEntity glowstick = new GlowstickEntity(System.Drawing.Color.FromArgb(doc["gs_color"].AsInt32), tregion);

            glowstick.ApplyPhysicsData(doc);
            return(glowstick);
        }
Example #2
0
        public override Entity Create(Region tregion, BsonDocument doc)
        {
            GlowstickEntity glowstick = new GlowstickEntity(new Color4F((float)doc["gs_cr"].AsDouble, (float)doc["gs_cg"].AsDouble, (float)doc["gs_cb"].AsDouble, (float)doc["gs_ca"].AsDouble), tregion);

            glowstick.ApplyPhysicsData(doc);
            return(glowstick);
        }
Example #3
0
 public override Entity Create(Region tregion, BsonDocument doc)
 {
     GlowstickEntity glowstick = new GlowstickEntity(System.Drawing.Color.FromArgb(doc["gs_color"].AsInt32), tregion);
     glowstick.ApplyPhysicsData(doc);
     return glowstick;
 }
Example #4
0
 public GlowstickEntityTag(GlowstickEntity ent)
 {
     Internal = ent;
 }