Ejemplo n.º 1
0
        public override BsonDocument GetSaveData()
        {
            BsonDocument doc = new BsonDocument();

            AddPhysicsData(doc);
            doc["sg_color"]     = col.ToArgb();
            doc["sg_smokeleft"] = SmokeLeft;
            doc["sg_type"]      = SmokeType.ToString();
            return(doc);
        }
Ejemplo n.º 2
0
        public override BsonDocument GetSaveData()
        {
            BsonDocument doc = new BsonDocument();

            AddPhysicsData(doc);
            doc["sg_cr"]        = col.R;
            doc["sg_cg"]        = col.G;
            doc["sg_cb"]        = col.B;
            doc["sg_ca"]        = col.A;
            doc["sg_smokeleft"] = SmokeLeft;
            doc["sg_type"]      = SmokeType.ToString();
            return(doc);
        }