- Finish shred
setupPR - Finish shred
MetaTablePR - Review zakarumych/gfx-chain#4
- Publish shred
- Create shred version bump PR for Specs
- Publish Specs
-
specs_gsf(postponed until Specs is published) - Get
gsfready for the first release - Test out Amethyst UI code & write together current issues
- Eventually help out with hal integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "meshes": { | |
| "cube": "obj", | |
| "sphere": "fbx" | |
| }, | |
| "textures": { | |
| "grass": "png", | |
| "brick": "jpg" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern crate shred; | |
| #[macro_use] | |
| extern crate shred_derive; | |
| extern crate specs; | |
| use shred::{DispatcherBuilder, System}; | |
| use specs::{ReadStorage, WriteStorage, World}; | |
| use specs::entity::Component; | |
| use specs::storages::VecStorage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| impl<'a> System<'a> for EntitiyCreator { | |
| type SystemData = (Entities<'a>, WriteStorage<'a, Pos>); | |
| fn run(&mut self, (entities, pos): Self::SystemData) { | |
| let a = entities.create(); | |
| let b = entities.create(); | |
| pos.insert(a, Pos::new(2, 4)); | |
| pos.insert(b, Pos::new(3, 5)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[macro_use] | |
| extern crate error_chain; | |
| extern crate hlua; | |
| extern crate specs; | |
| use std::collections::HashMap; | |
| error_chain! { | |
| errors { | |
| NoSuchComponent(name: String) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const INPUT: &str = "6169763796227664136644229724736711773811471986347364813198\ | |
| 2449728688116728695866572989524473392982963976411147683588415878214189996163533\ | |
| 5845471757941581181487242988327988983333997865614591526441446699598873414819683\ | |
| 1917298735798978579136673284993278834377211217661472385847495991971385539887695\ | |
| 6427631354172668133549845585632211935573662181331613137869866693259374322169811\ | |
| 6836353253215972428893581471233581177749146537873713685747843767216521817923716\ | |
| 3528837672978496752682491519252674493518798957134774622211362557796347614192318\ | |
| 7534658445615596987614385911513939292257263723518774888174635963254624769684533\ | |
| 5314437457293443419737464693268381862484484835874775632858674999564462187752323\ | |
| 7438343392183599313646338362886111557314285435894329114876629965363319558213593\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use specs::System; | |
| use specs::SystemData; | |
| pub struct InstrumentedSystem<T> { | |
| pub system: T, | |
| } | |
| impl<T> InstrumentedSystem<T> { | |
| pub fn new(system: T) -> Self { | |
| InstrumentedSystem { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait Foo { | |
| fn method(&self); | |
| } | |
| trait Cast<T> { | |
| fn cast(t: &T) -> &Self; | |
| fn cast_mut(t: &mut T) -> &mut Self; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::ptr::write; | |
| #[derive(Clone, Copy, Debug)] | |
| #[repr(C)] | |
| struct FatPtr { | |
| ptr: *mut (), | |
| extra: *const (), | |
| } | |
| trait Foo { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ($num:expr;$($field:ident),*;$($rev:ident),*) => { | |
| impl<$($field,)*> Pop for ($($field,)*) | |
| where | |
| $($field: Pop),* | |
| { | |
| fn tag() -> Ty { | |
| unreachable!() | |
| } | |
| fn pop_tags(stack: &mut Stack) -> Result<()> { |
OlderNewer